package org.xyl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 价签诊断服务配置类
 */
@Component
@ConfigurationProperties(prefix = "price-tag.diagnosis")
@Data
public class PriceTagDiagnosisProperties {

    /**
     * 是否启用LightGBM模型
     */
    private boolean enableLightgbm = true;

    /**
     * 规则引擎优先级
     */
    private String ruleEnginePriority = "high";

    /**
     * 沃尔玛超市特定配置
     */
    private WalmartConfig walmartConfig = new WalmartConfig();

    /**
     * 沃尔玛超市配置内部类
     */
    @Data
    public static class WalmartConfig {
        
        /**
         * 网络超时阈值（毫秒）
         */
        private int networkTimeoutThreshold = 5000;

        /**
         * RF干扰检测阈值
         */
        private int rfInterferenceThreshold = 60;
    }
}
